import axios from '../axios.js';
import { SELLERS } from './const.js'

export default {
    getSellers(params) {
        return axios({
            url: SELLERS + "/getSellers",
            method: "get",
            params
        });
    },

    delSellersById(data) {
        return axios({
            url: SELLERS + "/delSellersById",
            method: "post",
            data
        });
    },


    addSellers(data) {
        return axios({
            url: SELLERS + "/addSellers",
            method: "post",
            data
        });
    },

    getSellersById(params) {
        return axios({
            url: SELLERS + "/getSellersById",
            method: "get",
            params
        });
    },

    changeSellersById(data) {
        return axios({
            url: SELLERS + "/changeSellersById",
            method: "post",
            data
        });
    },

    getSellersOrderById(params) {
        return axios({
            url: SELLERS + "/getSellersOrderById",
            method: "get",
            params
        });
    },


    getSellersUserById(params) {
        return axios({
            url: SELLERS + "/getSellersUserById",
            method: "get",
            params
        });
    },

    sellerUsersAdd(data) {
        return axios({
            url: SELLERS + "/sellerUsersAdd",
            method: "post",
            data
        });
    },


    getSellersByIdForClaims(params) {
        return axios({
            url: SELLERS + "/getSellersByIdForClaims",
            method: "get",
            params
        });
    },
}